from collections import ChainMap

a = {'a': 'A', 'c': 'C'}
b = {'b': 'B', 'c': 'D'}

m = ChainMap(a, b)

print('Before: ', m)
m['c'] = 'E'
print('After: ', m)
